<div class="row">
<script language="javascript" type="text/javascript" src="/js/DatePicker/WdatePicker.js"></script>
<style type="text/css">
.Wdate{border:0px; }
</style>
    <div class="span3 bs-docs-sidebar ">
    <*include file="<*$controller*>/location.tpl"*>
    </div>
<!--    <*if $groupid*>
        <div class="span4" <*if $schoolid*>style="display:none;"<*/if*>> 
            <div style="clear:both; padding-top:20px;"><*$page*></div>
            <table class="table table-bordered table-hover" style="cursor:pointer; margin-top:15px; margin-left:20px;" >
                <tr><th>学校名称</th></tr>
                <*foreach from=$school item=m key=y*>
                <tr onclick="chooseit(<*$m.schoolid*>,<*$groupid*>)"><td><*$m.schoolname*></td></tr>
                <*/foreach*>
            </table>
            <div style="clear:both; padding-top:10px; "><*$page*></div>
        </div>
    <*/if*>
-->    

    <div class="span7" style="margin-bottom:10px;">
    	<button class="btn btn-primary" type="button" onclick="window.location='/<*$controller*>/statisclass/groupid/<*$groupid*>/schoolid/<*$schoolid*>'">返回</button> 
    </div>
    
    <*if $schoolid*>
<div class="span7" <*if $schoolid*>style="display:block;"<*else*>style="display:none;"<*/if*>> 
        <div class="span7"><*$schoolname*>&nbsp;&nbsp;<*$classname*></div>
          <form action="/<*$controller*>/<*$action*>/groupid/<*$groupid*>/schoolid/<*$schoolid*>" method="get" >
                <div class="span6" style="float:left;">
                    <select name="classid" id="classid" style=" float:left;width:300px; margin-top:20px; z-index:200;"> 
                        <option value="">---选择班级---</option> 
                        <*foreach from =$class item=a key=k*>
                        <option value="<*$a.uid*>" <*if $uid_class==$k*> selected<*/if*>><*$a.classname*></option> 
                        <*/foreach*>
                    </select>
                </div>
        <div class="span6" style="text-align:left; margin-top:10px;clear:both">
                    开始日期：<input type="text" class="Wdate" id="start_date" onclick="WdatePicker()" style="width:110px"  name="start_date" class="Wdate" value="<*$start_date*>" autocomplete="off"/> 
                   ~  结束日期：<input type="text" class="Wdate" id="end_date" onclick="WdatePicker()" style="width:110px"  name="end_date" class="Wdate" value="<*$end_date*>" autocomplete="off"/>  
                   <button type="submit" style="margin-bottom:10px;" class="btn btn-primary btn-small" >查询</button>
        </div>  
				<*if !$uid_class*><div style="clear:both; margin-left:30px; padding-top:20px;">请选择班级！</div><*/if*>        
          </form>
    <*/if*>
    
 <*if $classname*>
        <div class="span7" style=" text-align:center; font-weight:bolder;padding-top:20px;"><*$classname*>有<*$studentcount*>位学生</div>

        <div class="span7"> 
            <table class="table table-bordered table-hover"  >
                <tr><th>姓名</th><th>已发日志</th><th>已发照片</th></tr>
                <*foreach from=$student item=stu key=val*>
                <tr><td><*$stu.cnname*></td><td><*$stu.articleNum*></td><td><*$stu.imgNum*></td></tr>
                <*/foreach*>
            </table>
        </div>
 <*/if*>
</div>
</div>
</div>
</div>
<script type="text/javascript">
function chooseit(adid,groupid,schoolname)
{
   window.location='/<*$controller*>/<*$action*>/schoolid/'+adid+'/groupid/'+groupid;
}

</script>

